
@keyframes outline-flash {
  0% {
    opacity: 1;
    outline-offset: 10px;
  }
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    outline-offset: 2px;
  }
}


button:focus,
a:focus,
input:focus {
  outline: 2px dashed #333;
  outline-offset: 2px;
  animation: outline-flash 300ms 10ms;
}

body.noOutline button:focus,
body.noOutline a:focus,
body.noOutline input:focus {
  outline: none;
  animation: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0;
  /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=text],
input[type=number] {
  -webkit-appearance: none;
  appearance: none;
}

input[type=text],
input[type=email],
input[type=tel] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 5px;
  border-radius: 0;
}

[tabindex]:focus {
  outline: 2px dashed #333;
  outline-offset: 2px;
  animation: outline-flash 300ms 10ms;
}

[tabindex].noOutline:focus {
  outline: none;
  animation: none;
}

body.noOutline [tabindex]:focus {
  outline: none;
  animation: none;
}

.vector-icon {
  display: inline-block;
}

input[type=radio] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #666;
  border-radius: 20px;
  position: relative;
}

input[type=radio]:checked:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  display: inline-block;
  background-color: #666666;
  border-radius: 8px;
  top: 2px;
  left: 2px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 90px;
  height: 30px;
  line-height: 30px;
  border-radius: 0;
  vertical-align: middle;
  border: 1px solid #cccccc;
  background: #fff;
  padding: 0 10px;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 28px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 28px;
  padding-right: 0 \9
;
  background-image: url('');
}

select:focus {
  outline: 2px dashed #333;
  outline-offset: 2px;
  animation: outline-flash 300ms 10ms;
}

select.noOutline:focus {
  outline: none;
  animation: none;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

select::-ms-expand {
  display: none;
}

body.noOutline select:focus {
  outline: none;
  animation: none;
}

.noOutline {
  outline: none;
}
